<?php

namespace PHPSpring\Core;

class BizException extends \Exception {
  private $data;

  public function __construct (string $message = "", int $code = -1, Throwable $previous = null) {
    parent::__construct($message, $code, $previous);
  }

  public function setData ($data) {
    $this->data = $data;
  }

  public function getData() {
    return $this->data;
  }
}
